//
//  ImageCacheHelper.h
//  WoWeibo
//
//  Created by Jaedong n.Die_ on 12-5-31.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ImageDownloadOperationDelegate.h"

@class ImageDownloadHelper;

@interface ImageCacheHelper : NSObject <ImageDownloadOperationDelegate> {
@private
    NSMutableDictionary     *_imagesCache;
    NSInteger                _maxCacheCount;
    NSMutableDictionary     *_delegateDict;
    ImageDownloadHelper     *_imageDownloadHelper;
}

+ (ImageCacheHelper *)sharedImageCacheHelper;

- (NSData *)getImageByURL:(NSURL *)imageURL withDelegate:(id<ImageDownloadOperationDelegate>)delegate;
- (void)saveCache;

@end
